package com.lac.component.test.singleton;

/**
 * @author xiaokuixiao
 * date2025/4/9 13:53
 */
public class SingletonTest08 {
    public static void main(String[] args) {
        // 调用返回都是同个实例对象
        Singleton08 instance1 = Singleton08.INSTANCE;
        Singleton08 instance2 = Singleton08.INSTANCE;
//        System.out.println(instance1 == instance2);
    }

}
enum Singleton08{
    INSTANCE;
}